<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Checkbox2</title>
<script language="JavaScript">
function mclick(f){
l=f.chk.length
f.re.value=""
for(i=0 ; i<l ; i++){
if(f.chk[i].checked) {f.re.value=f.re.value + f.chk[i].value + "\n"}
}
}
</script>
</head>
<body>
<form name="ff" method="post">
<table border=0>
<th>마음에 드는 연예인을 고르시요</th>
<tr>
<td>
<textarea name=re rows=5 cols=30 ></textarea>
</td></tr>
<tr>
<td>
<label><input type="checkbox" name=chk value="티아라">티아라</label>
<label><input type="checkbox" name=chk value="소녀시대">소녀시대</label>
<label><input type="checkbox" name=chk value="황신혜">황신혜</label>
<label><input type="checkbox" name=chk value="김미화">김미화</label><br>
<label><input type="checkbox" name=chk value="이영자">이영자</label>
<label><input type="checkbox" name=chk value="고두심">고두심</label>
<label><input type="checkbox" name=chk value="신지">신지</label><br>
<label><input type=button name=bu value="선택" onclick="mclick(this.form)">
<input type=reset value="취소">
</td>
</tr>
</table>
</form>
</body>
</html>